package com.ericsson.enap.modules.kpi.job.ims;

import com.ericsson.common.quartz.job.MainJob;
import com.ericsson.common.quartz.job.ManualQuartzJob;
import com.ericsson.common.quartz.service.QuartzTableManager;
import com.ericsson.enap.modules.kpi.task.ims.ParamCompareValueTask;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class ParamCompareValueJob implements MainJob {

    @Autowired
    QuartzTableManager quartzTableManager;
    @Autowired
    ParamCompareValueTask paramCompareValueTask;

    String jobName="paramCompareValueJob";

    @Override
    public void doTask() {
        //paramCompareValueTask.execute();
        quartzTableManager.addManualTaskJob(jobName,jobName,jobName,jobName, ManualQuartzJob.class,"0 0/5 * * * ?",paramCompareValueTask);
    }
}
